package com.chenxiao.Command;

/**
 * @Author: CX
 * @Date: Created in  2024/04/03 11:11
 * @version: v1.0
 * @Description: TODO 具体命令类
 **/
public class ConcreteCommand implements Command{
    private Receiver receiver;

    ConcreteCommand(Receiver receiver){
        this.receiver = receiver;
    }

    @Override
    public void execute() {
        receiver.action();
    }
}
